<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8"/>
		 <meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title><?=$title ?></title>
		
		<link href="<?=base_url('bootstrap/css/bootstrap.min.css') ?>" rel="stylesheet">
		<!-- Bootstrap theme -->
		<link href="<?=base_url('bootstrap/css/bootstrap-theme.min.css') ?>" rel="stylesheet">		
		<link href="<?=base_url('css/theme.css') ?>" rel="stylesheet">								
		<link rel="stylesheet" type="text/css" href="<?=base_url('bootstrap/css/bootstrap-datetimepicker.css') ?>">
		<link rel="stylesheet" type="text/css" href="http://eonasdan.github.io/bootstrap-datetimepicker/content/pygments-manni.css">

		<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
		<script type="text/javascript" src="<?=base_url('bootstrap/js/bootstrap-datetimepicker.js') ?>"></script>
		<!-- popup form jquery -->
		<script type="text/javascript" src="<?=base_url('bootstrap/js/jquery.leanModal.min.js') ?>"></script>
		<link rel="stylesheet" type="text/css" href="<?=base_url('bootstrap/css/leanModal.css') ?>">
		<script type="text/javascript">
			$(function() {
    			$('a[rel*=leanModal]').leanModal({ top : 200, closeButton: ".modal_close" });		
			});
		</script>
		<!---->
		<style type="text/css">
			#autoSuggestionsList
			{

			}
		</style>
	</head>
	<body role="document">
		 <!-- Fixed navbar -->
		<div class="navbar navbar-default navbar-fixed-top" role="navigation">
		  <div class="container">
			<div class="navbar-header">
			  <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			  </button>
			  <a class="navbar-brand" href="<?=site_url(); ?>">Aothun.vn</a>
			</div>
			<div class="navbar-collapse collapse">
			  <ul class="nav navbar-nav">
				<?php foreach($nav_list  as $i => $nav_item): ?>
					<?php if($i == 'setting'): ?>
						<li class="dropdown">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-wrench"></span> Cài đặt <b class="caret"></b></a>
						<ul class="dropdown-menu">
						<?php foreach($nav_item  as $i_key => $i_child): ?>
							<li><a href="<?=base_url($i_key) ?>"><?=$i_child ?></a></li>
						<?php endforeach ?>	
						</ul>
						</li>
					<?php else: ?>
					<li class="<?= ($nav == $i ? 'active' : '')?>">
						<?= anchor($i, $nav_item) ?>
					</li>
					<?php endif; ?>
				<?php endforeach ?>								            	           
			  </ul>
			</div><!--/.nav-collapse -->
		  </div>
		</div>
		<!-- End navbar -->
				
		<div class="container theme-showcase" role="main">
			 <div class="page-header">
				<h1><?=$section ?></h1>
			  </div>
			  <!--<p>					
				<button type="button" class="btn btn-lg btn-primary" onClick="exportPage()">Export XLS Data</button>
				<button type="button" class="btn btn-lg btn-info" onClick="exportHTMLPage()">Export HTML Data</button>
				<button type="button" class="btn btn-lg btn-success" onClick="importXSL()">Import Data</button>				
			  </p>-->			  			  			  			  
			  <?=$contents ?>
		</div>		
		<script src="<?=base_url('bootstrap/js/bootstrap.min.js') ?>"></script>
		<script src="<?=base_url('bootstrap/datepicker/js/bootstrap-datepicker.js') ?>"></script>
	</body>
</html>